package com.jwdf.uda.ui.fragment.user.personal;

import android.os.Bundle;
import com.jwdf.uda.event.UserEvent;
import com.jwdf.uda.ui.fragment.question.QuestionDynamicFragment;

/**
 * Created by Administrator on 2016/6/16.
 */
public class ExtendShowFragment extends QuestionDynamicFragment {

    public static ExtendShowFragment instance(String userId, String styleName) {
        ExtendShowFragment view = new ExtendShowFragment();
        Bundle args = new Bundle();
        args.putString("uid", userId);
        args.putString("style", styleName);
        view.setArguments(args);
        return view;
    }

    @Override
    protected String getUserId() {
        return getArguments().getString("uid");
    }

    public void onEventMainThread(UserEvent event) {
        if (UserEvent.EVENT_ADD_SHOW_SUCCESS == event.getEvent()) {
           autoRefresh();
        }
    }


//    @Override
//    protected UserShowAdapter.OnUserInfoClickListener createOnUserInfoClickListener() {
//        return null;
//    }
}
